/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.mapper;

import com.koron.purpose.bean.SafetyMeetingBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SafetyMeetingMapper {

    /**
     * 删除
     * @param id 主键id
     * @return
     */
    Integer deleteSafetyMeeting(@Param("id") String id);

    /**
     * 新增 安全会议表
     * @param bean 安全会议实体类
     * @return
     */
    Integer insertSafetyMeeting(@Param("safetyMeetingBean") SafetyMeetingBean bean);

    /**
     * 根据id 查询 安全会议
     * @param id
     * @return
     */
    SafetyMeetingBean queryById(String id);

    /**
     * 修改 安全会议表
     * @param bean
     * @return
     */
    Integer updateSafetyMeeting(@Param("safetyMeetingBean") SafetyMeetingBean bean);

    /**
     * 根据id修改 安全会议 会议记录
     * @param id
     * @param meetingRecord
     * @return
     */
    Integer updateSafetyMeetingRecord(@Param("id") String id, @Param("meetingRecord") String meetingRecord);

    /**
     * 条件查询 安全会议
     * @param map 查询条件
     * @return
     */
    List<Map> querySafetyMeeting(@Param("params") Map map);

    /**
     * 统计 条件查询 安全会议 的条数
     * @param map 查询条件
     * @return
     */
    Integer countQuerySafetyMeeting(@Param("params") Map map);
}
